package rmi;

import java.rmi.AlreadyBoundException;
import java.rmi.NotBoundException;
import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;

public class JavaRmiServer {
    public static void main(String[] args) throws RemoteException, NotBoundException, AlreadyBoundException {
        Registry registry = LocateRegistry.getRegistry("127.0.0.1",8182);
        Sendble sendble = new SendbleImpl();
        registry.bind("sendble",sendble);

        try {
            Thread.currentThread().join();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
